home *** CD-ROM | disk | FTP | other *** search
/ SPACE 1 / SPACE - Library 1 - Volume 1.iso / program / 113 / gfatip03 / gfatip03.txt < prev   
Text File  |  1987-11-28  |  2KB  |  48 lines

  1.                                                   May 31 1987
  2.  
  3. GFATIP03.ARC
  4.  
  5.                     Handling Errors Gracefully
  6.  
  7.                                 by
  8.                           John B. Holder
  9.                              GRIFJOHN
  10.  
  11.  
  12.      This is the third in a series of planned GFA Basic tip files.  
  13. It seemed that several people had been experiencing some trouble 
  14. with handling errors, so I felt it best to demonstrate with a 
  15. couple of source files in .BAS and .PRG form.
  16.  
  17.      Pointers on using the Compiler:
  18.  
  19.      1. If you want to use the Resume Next option, always select 
  20. the following options:
  21.  
  22.      A. Stop   - Ever
  23.      B. Trapv  - +
  24.      C. Errors - Text
  25.      D. Bombs  - +
  26.      
  27.      By doing so, you will invoke all of the compiler's error 
  28. trapping capabilities.  If you would like to later experiment with 
  29. deleting some of the options, do so with caution.  This is the 
  30. most protected mode available with the compiler.
  31.  
  32.      2. If you choose to use a Label: to return to, no special 
  33. options are necessary.  Since this reduces the size of the overall 
  34. program, it may be the method of choice.  However, you may need to 
  35. set up Local error trapping routines for each major I/O procedure.
  36.  
  37.  
  38.      I know that this Tip File is a bit scanty, but I am working 
  39. Full Bore on an RCS for GFA Basic at the moment and time precluded 
  40. a more wordy, and example filled Doc File.
  41.  
  42.      Sure hope this helps those who have been experiencing 
  43. problems with Error Trapping with the Compiler.
  44.  
  45.  
  46.                            GRIFJOHN
  47.  
  48.